
cc.Class({
    extends: cc.Component,

    properties: {
        tile_pointer:cc.Node
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },
    setPointer(isPlayer){
        this.tile_pointer.active = isPlayer;
        this.tile_pointer.stopAllActions();
        if(isPlayer){
            let moveByUp = cc.moveBy(1,0,50);
            let moveByDown = cc.moveBy(1,0,-50);
            let seq = cc.repeatForever(cc.sequence(moveByUp, moveByDown));
            this.tile_pointer.runAction(seq);
        };
    }

    // update (dt) {},
});
